package info.mhylle.mediaplayer.playlist.webitems;

/**
 * Created by IntelliJ IDEA.
 * User: Martin Hylleberg
 * Date: 02-11-2009
 * Time: 09:42:48
 * To change this template use File | Settings | File Templates.
 */
public class WebAlbum {
    private String name;
    private String webName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWebName() {
        return webName;
    }

    public void setWebName(String webName) {
        this.webName = webName;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WebAlbum)) return false;

        WebAlbum webAlbum = (WebAlbum) o;

        if (name != null ? !name.equals(webAlbum.name) : webAlbum.name != null) return false;
        if (webName != null ? !webName.equals(webAlbum.webName) : webAlbum.webName != null) return false;

        return true;
    }

    public int hashCode() {
        int result;
        result = (name != null ? name.hashCode() : 0);
        result = 31 * result + (webName != null ? webName.hashCode() : 0);
        return result;
    }
}
